package com.dragon.pear.models.params.create;


/**
 * @author Chris Chan
 * Create on 2025-09-30 22:44
 * Use for: 商品属性关联 数据创建参数
 * Explain:
 * 
 */
public class TradeGoodsAttrCreateParam {
    // ID
    private long id;
    // 商品编码
    private long code;
    // 属性项
    private String itemName;
    // 属性值
    private String value;
    // 属性图标索引
    private int iconIndex;

    // 无参构造方法
    public TradeGoodsAttrCreateParam() {
    }

    // 全参数构造方法
    public TradeGoodsAttrCreateParam(long id, long code, String itemName, String value, int iconIndex) {
        this.id = id;
        this.code = code;
        this.itemName = itemName;
        this.value = value;
        this.iconIndex = iconIndex;
    }

    // 全参数create生成器
    public static TradeGoodsAttrCreateParam create(long id, long code, String itemName, String value, int iconIndex) {
        return new TradeGoodsAttrCreateParam(id, code, itemName, value, iconIndex);
    }

    // 全参数of生成器
    public static TradeGoodsAttrCreateParam of(long id, long code, String itemName, String value, int iconIndex) {
        return new TradeGoodsAttrCreateParam(id, code, itemName, value, iconIndex);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public TradeGoodsAttrCreateParam setId(long id) {
        this.id = id;
        return this;
    }

    public long getCode() {
        return code;
    }

    public TradeGoodsAttrCreateParam setCode(long code) {
        this.code = code;
        return this;
    }

    public String getItemName() {
        return itemName;
    }

    public TradeGoodsAttrCreateParam setItemName(String itemName) {
        this.itemName = itemName;
        return this;
    }

    public String getValue() {
        return value;
    }

    public TradeGoodsAttrCreateParam setValue(String value) {
        this.value = value;
        return this;
    }

    public int getIconIndex() {
        return iconIndex;
    }

    public TradeGoodsAttrCreateParam setIconIndex(int iconIndex) {
        this.iconIndex = iconIndex;
        return this;
    }

    // endregion Getter和Setter方法
}
